package dpatterns.observer.trademonster.push;

import java.util.HashMap;
import java.util.Map;
import java.util.Observable;

public class StockData extends Observable {
	private Map<String, Stock> stocks;
	
	public StockData() { 
		stocks = new HashMap<String, Stock>();
	}
	
	public Map<String, Stock> getStocks() {
		return stocks;
	}

	public void setStocks(Map<String, Stock> stocks) {
		this.stocks = stocks;
		
		setChanged();
		notifyObservers();
	}
}
